*** Settings ***
Documentation       通过ipmi接口测试openUBMC的fruid
Resource            ../../test_function/ipmi/ipmi.robot
Library             OperatingSystem
Library             BuiltIn

Test Tags           Ipmi_Fru_Id

*** Variables ***
${input}                    raw 0x30 0x93 0xdb 0x07 0x00 0x3b 0x00 0xff 0xff 0xff 0xff 0x00 0xff
${expected_rc}              ${0}
${expected_output}          db 07 00


*** Test Cases ***
Get IPMI Fru ID
    [Documentation]    带认证的IPMI的Fru ID测试
    [Tags]  Get_Fru_Id_Via_IPMI
    ${rc}    ${output}=  Run External Ipmi Command    ${input}
    Log    Command Output: ${output}
    Should Be Equal    ${rc}    ${expected_rc}    msg=${output}
    Should Contain    ${output}    ${expected_output}


